package com.houger.ddd.datamanager.utils;

import java.util.concurrent.TimeUnit;

public interface RedissonLock {
    boolean tryLock(String key, long waitTime, TimeUnit unit);

    boolean tryLock(String key, long waitTime, long leaseTime, TimeUnit unit);

    void unlock(String key);
}